package com.czg.designmode.singleton;

/**
 * 登记式/静态内部类-线程安全
 *
 * @author chenzhigang
 */
public class StaticInnerSingleton {

    private static class InnerClass {
        private static final StaticInnerSingleton STATIC_INNER_SINGLETON = new StaticInnerSingleton();
    }

    public static StaticInnerSingleton getInstance() {
        return InnerClass.STATIC_INNER_SINGLETON;
    }

}
